import request from '@/utils/request'

// 合伙人列表
export async function shareAgentSignPlatformList<T>(params: T) {
  return request('/api/agent.shareAgentSettlement/shareAgentSignPlatformList', {
    method: 'GET',
    params
  })
}



// 财务对账-体现记录列表接口(包含顶部汇总和角标统计)
export async function getPartnerWithdrawList<T>(params: T) {
  return request('/api/partner/getPartnerWithdrawList', {
    method: 'GET',
    params
  })
}



// 财务对账-提现详情接口
export async function getWithdrawDetail<T>(params: T) {
  return request('/api/partner/getWithdrawDetail', {
    method: 'GET',
    params
  })
}

// 账户账单-申请提现预加载接口
export async function withdrawPreload<T>(params: T) {
  return request('/api/partner/withdrawPreload', {
    method: 'GET',
    params
  })
}

// 财务对账-申请提现接口
export async function applyWithdraw(data: any) {
  return request('/api/partner/applyWithdraw', {
    method: 'POST',
    data
  })
}

// 财务对账-提现取消
export async function cancelWithDraw(data: any) {
  return request('/api/partner/cancelWithDraw', {
    method: 'POST',
    data
  })
}